package com.soup.common.config;

import com.soup.common.constant.CommonConstant;
import lombok.Data;

/**
 * 线程池配置
 *
 * @author zhaoyi
 */
@Data
public class ThreadPoolProperties {

    public static final String THREAD_POOL_CONF_PREFIX = "threadpool";

    /**
     * threadpool:
     *   coreSize: 5
     */
    private int coreSize = CommonConstant.NUM_5;

    /**
     * threadpool:
     *   maxSize: 10
     */
    private int maxSize = CommonConstant.NUM_10;

    /**
     * threadpool:
     *   queueCapacity: 100
     */
    private int queueCapacity = CommonConstant.NUM_100;

    /**
     * threadpool:
     *   keepAliveSeconds: 3000
     */
    private int keepAliveSeconds = CommonConstant.NUM_3000;

}
